package com.yyc.exception;

import com.yyc.enums.ResultEnum;

public class ProductException extends RuntimeException{

	private Integer code;
	
	public ProductException(ResultEnum resultEnum) {
		super(resultEnum.getMsg());
		this.code = resultEnum.getCode();
	}
}
